import Vue from 'vue';
import Vuex from 'vuex';

import app from './modules/app';
import user from './modules/user';
import serviceItem from './modules/serviceItem';
import createPersistedState from 'vuex-persistedstate'

import axios from 'axios'

Vue.use(Vuex);

const store = new Vuex.Store({
    mutations: {
    },
    actions: {
    },
    modules: {
        app,
        user,
        serviceItem
    },
    //持久化
    plugins: [createPersistedState()]
});
export default store;
